<?php

return [
    0 => [
        'name' => 'type',
        'title' => '选择云存储类型',
        'type' => 'select',
        'content' => [
            'local' => '本地存储',
            'qiniu' => '七牛云存储',
            'aliyun' => '阿里云存储',
        ],
        'value' => 'qiniu',
        'rule' => 'required',
        'msg' => '',
        'tip' => '',
        'ok' => '',
        'extend' => '',
    ],
    [
        'name' => 'uploadmode',
        'title' => '上传模式',
        'type' => 'select',
        'content' => [
            'client' => '客户端直传(速度快,无备份)',
            'server' => '服务器中转(占用服务器带宽,可备份)',
        ],
        'value' => 'server',
        'rule' => '',
        'msg' => '',
        'tip' => '',
        'ok' => '',
        'extend' => '',
    ],
    2 => [
        'name' => 'qiniu',
        'title' => '七牛云存储',
        'type' => 'array',
        'content' => [
            'accessKey' => 'xxxxxx',
            'secretKey' => 'xxxxxx',
            'bucket' => 'test-bucket-name',
            'domain' => 'xxxx.bkt.clouddn.com',
            'uploadurl' => '直传上传地址https://xxx.qiniup.com',
            'oss_domain' => 'http://domain',
        ],
        'value' => [
            'accessKey' => '',
            'secretKey' => '',
            'bucket' => '',
            'domain' => '',
            'uploadurl' => '',
            'oss_domain' => '',
        ],
        'rule' => 'required',
        'msg' => '',
        'tip' => '',
        'ok' => '',
        'extend' => '',
    ],
    3 => [
        'name' => 'aliyun',
        'title' => '阿里云存储',
        'type' => 'array',
        'content' => [
            'accessId' => '<aliyun access id>',
            'accessSecret' => '<aliyun access secret>',
            'bucket' => '<bucket name>',
            'endpoint' => '<endpoint address>',
            'uploadurl' => '直传上传地址https://bucket.endpoint',
            'oss_domain' => 'https://bucket.endpoint',
        ],
        'value' => [
            'accessId' => '',
            'accessSecret' => '',
            'bucket' => '',
            'endpoint' => '',
            'uploadurl' => '',
            'oss_domain' => '',
        ],
        'rule' => 'required',
        'msg' => '',
        'tip' => '',
        'ok' => '',
        'extend' => '',
    ],
];
